home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
eflibpt4.zip
/
DEMO
/
ADVANCED
/
ARRAYTST.PAS
next >
Wrap
Pascal/Delphi Source File
|
1996-08-16
|
1KB
|
34 lines
{ Borland Pascal Extended Function Library - EFLIB (C) Johan Larsson, 1996
Demonstration; example on ARRAYLST.PAS implementation
EFLIB IS PROTECTED BY THE COPYRIGHT LAW AND MAY NOT BE COPIED, SOLD OR
MANIPULATED. FOR MORE INFORMATION, SEE PROGRAM MANUAL! THIS DEMONSTRAT-
ION PROGRAM MAY FREELY BE USED AND DISTRIBUTED. }
uses EFLIBDEF, STDARRAY;
var MyArray : StandardArrayObjectType; Number : real;
begin
WriteLn ('* Standard Pascal array implemented as a polymorphic EFLIB data type *');
with MyArray do begin
Initialize;
{ Add some elements }
Number := 1.1; Add (Number);
Number := 2.2; Add (Number);
Number := 4.4; Add (Number);
with CreateIterator^ do begin
repeat
WriteLn (Real(Content^):0:2);
WalkForward;
until IsEnd;
Free;
end;
Intercept;
end;
end.